package com.panshi.controller.qa;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@Controller
@Slf4j
public class LoginController {

    @GetMapping("login")
    public ModelAndView login(@RequestParam("isd") Integer isd){
        log.info("isd========================{}",isd);
        ModelAndView mv = new ModelAndView("logic/logic");
        mv.addObject("isd",isd);
        return mv;
    }

    @GetMapping("regs")
    public ModelAndView regs(@RequestParam("isd") Integer isd){
        log.info("isd========================{}",isd);
        ModelAndView mv = new ModelAndView("logic/register");
        mv.addObject("isd",isd);
        return mv;
    }

}
